home *** CD-ROM | disk | FTP | other *** search
/ Day Cry / Day Cry CD.bin / oh_towns / install / ccilib.h < prev    next >
C/C++ Source or Header  |  1994-09-20  |  6KB  |  156 lines

  1. #ifndef    _CCILIB_H
  2. #define    _CCILIB_H
  3.  
  4. #define    NULL    (0)
  5.  
  6. #define    NORMAL    (0)
  7. #define    ERR        (-1)
  8. #define    TRUE    (1)
  9. #define    FALSE    (1)
  10.  
  11. #define    BUFSIZ    (512)
  12.  
  13. #define va_start(ap, parmN) (ap = (char *)(&parmN) + sizeof(int))
  14. #define va_arg(ap, type) ( *(type *) ((ap += __psize(sizeof(type)) ) - __psize(sizeof(type))) )
  15. #define va_end(ap)
  16.  
  17. #define    CLOCKS_PER_SEC    100
  18.  
  19. /*************************************************************************
  20. *    â}âEâX
  21. *************************************************************************/
  22.  
  23. #define    MOS_CON()        PD_curOn()
  24. #define    MOS_COFF()        PD_curOff()
  25. #define    MOS_DEC()        PD_curDec()
  26. #define    MOS_INC()        PD_curInc()
  27.  
  28. /*************************************************************************
  29. *    âXâNâèü[âô
  30. *************************************************************************/
  31.  
  32. #define    C_BLACK        (_ScnColTbl[ 0])
  33. #define    C_BLUE        (_ScnColTbl[ 1])
  34. #define    C_RED        (_ScnColTbl[ 2])
  35. #define    C_MAGENTA    (_ScnColTbl[ 3])
  36. #define    C_GREEN        (_ScnColTbl[ 4])
  37. #define    C_CYAN        (_ScnColTbl[ 5])
  38. #define    C_YELLOW    (_ScnColTbl[ 6])
  39. #define    C_WHITE        (_ScnColTbl[ 7])
  40. #define    C_HBLACK    (_ScnColTbl[ 8])
  41. #define    C_HBLUE        (_ScnColTbl[ 9])
  42. #define    C_HRED        (_ScnColTbl[10])
  43. #define    C_HMAGENTA    (_ScnColTbl[11])
  44. #define    C_HGREEN    (_ScnColTbl[12])
  45. #define    C_HCYAN        (_ScnColTbl[13])
  46. #define    C_HYELLOW    (_ScnColTbl[14])
  47. #define    C_HWHITE    (_ScnColTbl[15])
  48.  
  49. #define    C_THROUGH    (_ScnCol_though)    /* ôºû╛ÉF        */
  50. #define    C_MWHITE    (_ScnCol_white)        /* öÆ            */
  51. #define    C_MBLACK    (_ScnCol_black)        /* ìò            */
  52. #define    C_HILIGHT    (_ScnCol_hilight)    /* ânâCâëâCâg    */
  53. #define    C_SHADOW    (_ScnCol_shadow)    /* ëe            */
  54. #define    C_DARK        (_ScnCol_dark)        /* ê├            */
  55. #define    C_LGRAY        (_ScnCol_lgray)        /* âëâCâgâOâîâC    */
  56.  
  57. #define    PSET    0
  58. #define    PRESET    1
  59. #define    OR        2
  60. #define    AND        3
  61. #define    XOR        4
  62. #define    NOT        5
  63. #define    OPAQUE    9
  64.  
  65. /* â^âCâèâôâO    --------------------------------------------------------*/
  66. #define    MIXCOL_NORMAL    (0x00)
  67. #define    MIXCOL_STD1        (0x01)
  68. #define    MIXCOL_CROSS1    (0x10)
  69. #define    MIXCOL_CROSS2    (0x11)
  70.  
  71.  
  72. /*************************************************************************
  73. *    â_âCâAâìâO
  74. *************************************************************************/
  75.  
  76. /* â_âCâAâìâOò\Īê╩Æu    ------------------------------------------------*/
  77. #define    DLGPOS_NORMAL            (0)
  78. #define    DLGPOS_CENTER_OF_SCREEN    (1)    /* ëµû╩Æå뢠               */
  79. #define    DLGPOS_MOSCUR            (8)    /* â}âEâXâJü[â\âïê╩Æué╔    */
  80.  
  81. /* âüâbâZü[âWæ«É½    ----------------------------------------------------*/
  82. #define    TXMDAT_ATT_LEFT        (0)
  83. #define    TXMDAT_ATT_CENTER    (1)
  84. #define    TXMDAT_ATT_RIGHT    (2)
  85.  
  86. /*************************************************************************
  87. *    âtâ@âCâïâëâCâuâëâè
  88. *************************************************************************/
  89.  
  90. #define    FSISFILE_ERR    (-1)
  91. #define    FSISFILE_FILE    (1)
  92. #define    FSISFILE_DIR    (2)
  93.  
  94. /*************************************************************************
  95. *    âtâ@âCâïâ_âCâAâìâO
  96. *************************************************************************/
  97.  
  98. /*    æ«É½    ------------------------------------------------------------*/
  99. #define    FDLATT_SINGLE        (0x00000001)    /* âtâ@âCâïé≡é╨é╞é┬é╛é»æIæ≡ü^ÄwÆΦ        */
  100. #define    FDLATT_MULTI        (0x00000002)    /* òíÉöæIæ≡ü^ÄwÆΦ                        */
  101. #define    FDLATT_PATH            (0x00000003)    /* âfâBâîâNâgâèæIæ≡ü^ÄwÆΦ                */
  102. #define    FDLATT_DIRIGN        (0x00000080)    /* âTâuâfâBâîâNâgâèé╠æIæ≡ü^ÄwÆΦé≡ï╓Ä~    */
  103. #define    FDLATT_DUPIGN        (0x00000800)    /* ô»êΩâtâ@âCâï1é╠æIæ≡é≡ï╓Ä~é╖éΘ        */
  104. #define    FDLATT_EXIST        (0x00008000)    /* æ╢ì▌é╖éΘâtâ@âCâïé╠é▌æIæ≡ë┬ö\            */
  105. #define    FDLATT_SIDEWORK        (0x00010000)    /* âTâCâhü[âN                            */
  106. #define    FDLATT_DOSCALL        (0x00020000)    /* DOS âRâ}âôâh                            */
  107. #define    FDLATT_EXTIGN        (0x00040000)    /* ègÆúâüâjâàü[ï╓Ä~                        */
  108.  
  109. /*    sort    ------------------------------------------------------------*/
  110. #define    FDLSORT_OFF            (0)            /* â\ü[âgé╚é╡        */
  111. #define    FDLSORT_FILE        (1)            /* âtâ@âCâïû╝        */
  112. #define    FDLSORT_SUB            (2)            /* ègÆúÄq            */
  113. #define    FDLSORT_DATE        (3)            /* ô·òt                */
  114. #define    FDLSORT_SIZE        (4)            /* âTâCâY            */
  115. #define    FDLSORT_RVS            (0x80)        /* Å╕Åçü^ì~Åç        */
  116. #define    FDLSORT_DIRBIT        (0x60)
  117. #define    FDLSORT_DIRTOP        (0x00)        /* âfâBâîâNâgâèɵô¬    */
  118. #define    FDLSORT_DIRLAST        (0x20)        /* âfâBâîâNâgâèì┼îπ    */
  119. #define    FDLSORT_DIROFF        (0x40)        /* âfâBâîâNâgâè        */
  120.  
  121. /*************************************************************************
  122. *    âtâ@âCâïâRâsü[
  123. *************************************************************************/
  124.  
  125. /*    fcopy    ------------------------------------------------------------*/
  126. #define    FCOPY_ATT_SUBDIR        (0x00000001)    /* âTâuâfâBâîâNâgâèéαòíÄ╩    */
  127. #define    FCOPY_ATT_HIDDEN        (0x00000002)    /* ëBé╡âtâ@âCâïéαòíÄ╩        */
  128. #define    FCOPY_ATT_SYSTEM        (0x00000004)    /* âVâXâeâÇâtâ@âCâïéαòíÄ╩    */
  129. #define    FCOPY_ATT_ATTRIBUTES    (0x00000008)    /* âtâ@âCâïæ«É½éαòíÄ╩        */
  130. #define    FCOPY_ATT_TIMESTAMP        (0x00000010)    /* â^âCâÇâXâ^âôâvéαòíÄ╩        */
  131.  
  132. #define    FCOPY_ATT_CHK_OVERWRITE    (0x00000100)    /* ÅπÅæé½èmöF                */
  133. #define    FCOPY_ATT_CHK_TIMESTAMP    (0x00000200)    /* â^âCâÇâXâ^âôâvöΣèr        */
  134.  
  135. #define    FCOPY_ATT_NOENDMSG        (0x01000000)    /* ÅIù╣âüâbâZü[âWé╚é╡        */
  136.  
  137. /*************************************************************************
  138. *    DTA & PCL
  139. *************************************************************************/
  140.  
  141. #define    APLPCL_SAVE_SCREEN        (1)        /* ëµû╩ò█æ╢                    */
  142. #define    APLPCL_RESET_CRTC        (2)        /* ëµû╩ì─É▌ÆΦ                */
  143. #define    APLPCL_SET_STARTPATH    (4)        /* ïNô«âpâXDTA É▌ÆΦ            */
  144. #define    APLPCL_SET_PCP            (8)        /* PCP É▌ÆΦ                    */
  145. #define    APLPCL_SET_MRESO        (16)    /* Æåë≡æ£ôxÉ▌ÆΦ                */
  146. #define    APLPCL_CLEAR_SCREEN        (32)    /* ëµû╩é╠Å┴ïÄ                */
  147. #define    APLPCL_DTALIB_IGNORE    (128)    /* DTA âëâCâuâëâèÄgùpï╓Ä~    */
  148.  
  149. /*************************************************************************
  150. *    IMG
  151. *************************************************************************/
  152.  
  153. #define    IMG_ATT_PLTON    (0x00010000)
  154.  
  155. #endif
  156.